<template>
    <require from="./em-project-create.less"></require>
    <em-modal classes="em-project-create small" em-modal.ref="emModal" onshow.call="showHandler($event)" onapprove.call="approveHandler($event)">
        <div slot="header">创建项目</div>
        <div slot="content">
            <div ref="frmRef" class="ui form">
                <div class="inline field required">
                    <label>名称</label>
                    <input type="text" placeholder="" value.bind="project.name">
                </div>
                <div class="inline field required">
                    <label>标识</label>
                    <input type="text" placeholder="2-10位A-Z字符组合" value.bind="key">
                </div>
                <div class="inline field">
                    <label style="padding-right: 7px;">网址</label>
                    <input type="text" placeholder="" value.bind="project.website">
                </div>
                <div class="inline field required">
                    <label>项目负责人</label>
                    <em-dropdown classes="search selection" label="name" value="username" items.bind="users" selected.bind="project.leader"></em-dropdown>
                </div>
                <div class="inline field required">
                    <label>默认经办人</label>
                    <em-dropdown classes="search selection" label="name" value="username" items.bind="users" selected.bind="project.operator"></em-dropdown>
                </div>
            </div>
        </div>
    </em-modal>
</template>
